Django Design Patterns and Best Practices Second Edition

Django Design Patterns and Best Practices Second Edition

作者: Arun Ravindran
出版社: Packt Publishing
出版在: 2018-05-30
ISBN-13: 9781788831345
ISBN-10: 1788831349
裝訂格式: Paperback
總頁數: 282 頁





內容描述


Build maintainable websites with elegant Django design patterns and modern best practices
Key Features

Deep dive into various aspects of Django from Models and Views to testing and deployment
Familiarize yourself with the various nuances of web development such as browser attacks and data design
Guides you through various asynchronous tools like Celery, Channels.

Book Description
Building secure and maintainable web applications requires extensive knowledge of several areas. This book is not just a guide to tackle such difficult topics beyond Django but also encapsulates years of experience in the form of design patterns and best practices. Rather than stick to GoF design patterns, this book looks broadly at higher-level patterns in web development.
Using the latest version of Django and Python, this book fast track you to current developments like Channels and asyncio while building adequate conceptual background. It compares various design choices that will help you in making everyday decisions in a rapidly changing environment.
You will first learn about various architectural patterns, many of which are used to build Django itself. Start from the very beginnings of a fun superhero project by gathering requirements, creating mockups, and setting up the project. Through project-guided examples, you will explore the Model, View, templates, workflows and code reusability techniques. Throughout this book, you will learn practical Python coding techniques in Django that will enable you to tackle problems related to complex topics like legacy coding, data modelling, code reusability and so on.
You will also explore API design principles and best practices and understand the need for asynchronous workflows in websites. You will also learn popular Python code testing techniques in Django, various web security threats and their countermeasures, and go into the details of monitoring and performance of your application
What you will learn

Understand common design patterns that can help you write better Django code
Discover the latest best practices and idioms in this rapidly evolving framework
Deep dive into various aspects of Django from Models and Views to testing and deployment
Get to grips with difficult topics such as dealing with legacy code and debugging
Familiarize yourself with the various nuances of web development such as browser attacks and data design
Guides you through various asynchronous tools like Celery, Channels and asyncio
Shows various patterns while designing an API interface with Django Rest Framework
Reduce the maintenance burden with well-tested, cleaner code
Show your work to the world by learning about hosting, deploying, and securing your Django projects

Who This Book Is For
The ideal target audience for this book would be Python Developers who are using Python for developing complex web applications and new Django developers who are trying to learn best practices.




相關書籍

The Journal of Artificial Intelligence Research Volume 13 (JAIR)

作者 Michael Wellman

2018-05-30

基於雲計算的數據科學

作者 Valliappa Lakshmanan 馬睿

2018-05-30

Python for ArcGIS Pro: Automate cartography and data analysis using ArcPy, ArcGIS API for Python, Notebooks, and pandas

作者 Silas Toms Bill Parker

2018-05-30